home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Die Speccy' 97
/
Die Speccy' 97.iso
/
amiga_system
/
the_aminet
/
comm
/
tcp
/
usno_time.readme
< prev
Wrap
Text File
|
1995-11-07
|
5KB
|
135 lines
Short: TCP/IP utils to set/check time from USNO
Author: Port by Rick O'Sullivan, original by USNO timekeepers.
Uploader: rosully@aww.com (Rick O'Sullivan)
Type: comm/tcp
US Naval Observatory Time Utilites for AmigaDOS
-----------------------------------------------
DESCRIPTION
-----------
This is an Amiga port of routines from the US Naval Observatory.
UTILITIY FUNCTION POST ADDRESS
-------- ------------------------------- ---------------------------
timec check time from remote service; "time" on port 37/tcp
time_chk check time from remote service; "timesrv" on port 22375/tcp
time_set set time from remote service; "timesrv" on port 22375/tcp
timesrvd serve time to remote client ; "timesrv" on port 22375/tcp
REQUIREMENTS
------------
These routines were compiled and tested on an A3000 with AmigaDOS
V2.1 and AmiTCP V4.2 (commercial). The source is provided and should
be easily adapted for AS225.
INSTALLATION
------------
1 Copy the utilities in usno/bin to AmiTCP:bin.
2 Copy the daemon in usno/serv to AmiTCP:serv, if you wish to serve time.
3 Add the following line to AmiTCP:db/services:
timesrv 22375/tcp ; time server process
EXAMPLES
--------
Set local time to USNO time using "timesrv" & port 22375/tcp:
> time_set tick.usno.navy.mil ; sets local time to USNO time
Check local time with USNO time using "timesrv" & port 22375/tcp:
> time_chk tick.usno.navy.mil
Local Time.....: Sat Nov 04 00:36:42 1995 at aww.com
Remote Time....: Sat Nov 04 00:36:42 1995 at tick.usno.navy.mil
Local - Server.: 0 secs
Check local time with USNO time using "time" & port 37/tcp:
> time_chk tick.usno.navy.mil ; checks local time with USNO time
Local Time.....: Sat Nov 04 00:38:41 1995 at aww.com
Remote Time....: Sat Nov 04 00:38:42 1995 at tick.usno.navy.mil
Local - Server.: -1 secs
BUGS
----
I had to _reset_ my GMT offset in the Locale Preference. If you
receive funny times try changing highligt on Locale's map back and
forth.
DEVELOPERS
----------
The makefiles and source for these utilities is included. They
were compiled with SAS/C V6.55. The makefiles assume the AmiTCP
development files are organized as follows:
AmiTCP:
|
---> AmiTCP:dev
|
---> AmiTCP:dev/include
|
---> AmiTCP:dev/lib
|
---> AmiTCP:dev/src
|
---> AmiTCP:dev/src/usno
Note: I've moved the default location of AmiTCP:include,
AmiTCP:lib and AmiTCP:src to AmiTCP:dev as a personal preference.
These files were obtained from ftp://tycho.usno.navy.mil.
Mia culpa, I changed the names a bit and restructured the code to
suit my tastes.
------------------------------------------------------------------------
Altofirma Web Works Richard P. O'Sullivan
http://www.aww.com/ rosully@aww.com
------------------------------------------------------------------------
Tick-Tock :-)
============================= Archive contents =============================
Original Packed Ratio Date Time Name
-------- ------- ----- --------- -------- -------------
62 61 1.6% 30-Oct-95 09:44:48 +error.fix
16931 6919 59.1% 30-Oct-95 09:55:34 +Interex.paper
1434 627 56.2% 30-Oct-95 09:44:48 +Makefile.BSD
1349 679 49.6% 30-Oct-95 09:44:48 +time_set.1
60 40 33.3% 30-Oct-95 09:44:48 +time_set.log
971 440 54.6% 30-Oct-95 09:44:48 +timecheck.man
1548 683 55.8% 30-Oct-95 09:44:48 +timeset.man
1096 590 46.1% 30-Oct-95 09:44:48 +timesrv.1
1299 594 54.2% 30-Oct-95 09:44:48 +timesrv.man
1377 611 55.6% 30-Oct-95 09:44:48 +Makefile.noinstall
2177 1124 48.3% 30-Oct-95 09:44:48 +README.1ST
754 425 43.6% 30-Oct-95 09:44:48 +timecheck.1
133 96 27.8% 30-Oct-95 09:44:48 +etc.inetd.conf
562 260 53.7% 30-Oct-95 09:44:48 +TIME_SET
3913 1475 62.3% 04-Nov-95 00:00:32 +time_chk.c
7018 2233 68.1% 03-Nov-95 23:07:04 +time_set.c
4073 1520 62.6% 03-Nov-95 23:56:54 +timec.c
866 504 41.8% 04-Nov-95 00:04:44 +timesrvd.c
12032 7662 36.3% 04-Nov-95 00:03:30 +time_chk
12036 7674 36.2% 03-Nov-95 23:57:20 +timec
52 52 0.0% 30-Oct-95 09:44:48 +etc.services
230 145 36.9% 04-Nov-95 00:02:50 +makeall
746 409 45.1% 03-Nov-95 23:11:16 +makefile.time_chk
725 404 44.2% 03-Nov-95 23:28:24 +makefile.timec
747 408 45.3% 04-Nov-95 00:12:10 +makefile.timesrvd
1500 771 48.6% 04-Nov-95 00:11:44 +serv.info
2988 2051 31.3% 04-Nov-95 00:05:32 +timesrvd
2972 1090 63.3% 04-Nov-95 00:59:56 +usno_time.readme
11164 7044 36.9% 03-Nov-95 23:12:08 +time_set
540 302 44.0% 30-Oct-95 09:44:48 +cron.kill
329 222 32.5% 30-Oct-95 09:44:48 +cronfile
746 408 45.3% 03-Nov-95 23:11:22 +makefile.time_set
-------- ------- ----- --------- --------
92430 47523 48.5% 04-Nov-95 07:37:38 32 files